//专家

import Http from "../utils/HttpUtil";
import URL from "./URL";


export default {
    //  专家列表 
    async  SelectExpertsList(){
        let url=URL.GetURL(URL.SelectExpertsList);
        return await(Http.Get(url))
        .then(response=>{
            return(response)
        },reject=>{
            return Promise.reject(reject);
        });
    },
    
    async  HomeRecommendedExperts(){
        let url=URL.GetURL(URL.HomeRecommendedExperts);
        return await(Http.Get(url))
        .then(response=>{
            return(response)
        },reject=>{
            return Promise.reject(reject);
        });
    },

    //专家搜索
    async ExpertsSearch(content){
        let url=URL.GetURL(URL.ExpertsSearch);
        return await(Http.Get(url)+"?content="+content)
        .then(response=>{
            return(response)
        },reject=>{
            return Promise.reject(reject);
        });
    },

    
}